﻿using IOCDI.Model;
using IOCDI.Services;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

namespace IOCDI
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            Container.RegisterSingleton<ITestService, TestService>();
            Container.RegisterSingleton<ITestBService, TestBService>();
            var testservice = Container.Resolve<ITestService>();
            var testbservice = Container.Resolve<ITestBService>();
            Container.RegisterSingleton<Foo>();
            Foo foo = Container.Resolve<Foo>();
            Console.WriteLine(foo.Name);
            testservice.Add();
            Console.WriteLine(testservice.Count);
        }
    }
}
